package com.ai.aicontact.busi.entity;
 

import java.util.Date;

import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonFormat;

/***************
 *author: autogen
 *version: 2016-08-13 21:01:56.523
 */
@Entity
@Table(name = "CRITICAL_POINT_CATAGORY")
public class CriticalPointCatagory implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	
	public CriticalPointCatagory(Long catagoryId,String catagoryName,Integer catagoryLevel,Long parentId, Date createDate,String remarks,Integer sortBy,String parentName){
	this.catagoryId = catagoryId;
	this.catagoryName = catagoryName;
	this.catagoryLevel = catagoryLevel;
	this.parentId = parentId;
	this.createDate = createDate;
	this.remarks = remarks;
	this.sortBy = sortBy;
	this.parentName = parentName; 
	}

    public static final String TABLE = "CRITICAL_POINT_CATAGORY";

    /**${param.comment} */
	public static final String ALIAS_CATAGORY_ID = "CATAGORY_ID";
    /**${param.comment} */
	public static final String ALIAS_CATAGORY_NAME = "CATAGORY_NAME";
    /**${param.comment} */
	public static final String ALIAS_CATAGORY_LEVEL = "CATAGORY_LEVEL";
    /**${param.comment} */
	public static final String ALIAS_PARENT_ID = "PARENT_ID";
    /**${param.comment} */
	public static final String ALIAS_STATE = "STATE";
    /**${param.comment} */
	public static final String ALIAS_CREATE_DATE = "CREATE_DATE";
    /**${param.comment} */
	public static final String ALIAS_DONE_DATE = "DONE_DATE";
    /**${param.comment} */
	public static final String ALIAS_REMARKS = "REMARKS";
    /**${param.comment} */
	public static final String ALIAS_SORT_BY = "SORT_BY";
	
	

 	@Id 
    @GeneratedValue(strategy=GenerationType.SEQUENCE,generator="CRITICAL_POINT_CATAGORY$SEQ")
	@SequenceGenerator(name="CRITICAL_POINT_CATAGORY$SEQ",sequenceName="CRITICAL_POINT_CATAGORY$SEQ",allocationSize=1)
    @Column(name = "CATAGORY_ID", unique = true, nullable = false)
    public java.lang.Long catagoryId;
  
 	@Column(name = "CATAGORY_NAME")
    public java.lang.String catagoryName;
  
 	@Column(name = "CATAGORY_LEVEL")
    public java.lang.Integer catagoryLevel;
  
 	@Column(name = "PARENT_ID")
    public java.lang.Long parentId;
  
 	@Column(name = "STATE")
    public java.lang.Integer state;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_DATE")
 	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    public java.util.Date createDate;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "DONE_DATE")
 	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public java.util.Date doneDate;
  
 	@Column(name = "REMARKS")
    public java.lang.String remarks;
  
 	@Column(name = "SORT_BY")
    public java.lang.Integer sortBy;
  

 	@Transient
 	public java.lang.String parentName;
 	
 	public String getParentName(){
 		return this.parentName;
 	}
	public void setParentName(String parentName){
 		 this.parentName = parentName;
 	}


	public java.lang.Long getCatagoryId() {
		return this.catagoryId;
	}
	
	public void setCatagoryId(java.lang.Long value) {
		this.catagoryId = value;
	}

	
	
	public java.lang.String getCatagoryName() {
		return this.catagoryName;
	}
	
	public void setCatagoryName(java.lang.String value) {
		this.catagoryName = value;
	}

	public java.lang.Integer getCatagoryLevel() {
		return this.catagoryLevel;
	}
	
	public void setCatagoryLevel(java.lang.Integer value) {
		this.catagoryLevel = value;
	}

	public java.lang.Long getParentId() {
		return this.parentId;
	}
	
	public void setParentId(java.lang.Long value) {
		this.parentId = value;
	}

	public java.lang.Integer getState() {
		return this.state;
	}
	
	public void setState(java.lang.Integer value) {
		this.state = value;
	}

	public java.util.Date getCreateDate() {
		return this.createDate;
	}
	
	public void setCreateDate(java.util.Date value) {
		this.createDate = value;
	}

	public java.util.Date getDoneDate() {
		return this.doneDate;
	}
	
	public void setDoneDate(java.util.Date value) {
		this.doneDate = value;
	}

	public java.lang.String getRemarks() {
		return this.remarks;
	}
	
	public void setRemarks(java.lang.String value) {
		this.remarks = value;
	}

	public java.lang.Integer getSortBy() {
		return this.sortBy;
	}
	
	public void setSortBy(java.lang.Integer value) {
		this.sortBy = value;
	}


	
	public CriticalPointCatagory() {
	}
	
	public CriticalPointCatagory(boolean qryflag) {
	    if(qryflag){
	    		this.catagoryId = null;
				this.catagoryName = null;
				this.catagoryLevel = null;
				this.parentId = null;
				this.state = null;
				this.createDate = null;
				this.doneDate = null;
				this.remarks = null;
				this.sortBy = null;
			    }
	}


	public CriticalPointCatagory(
	    java.lang.Long inCatagoryId,
	    java.lang.String inCatagoryName,
	    java.lang.Integer inCatagoryLevel,
	    java.lang.Long inParentId,
	    java.lang.Integer inState,
	    java.util.Date inCreateDate,
	    java.util.Date inDoneDate,
	    java.lang.String inRemarks,
		java.lang.Integer inSortBy
	 ) {
		super();
				this.catagoryId = inCatagoryId;
				this.catagoryName = inCatagoryName;
				this.catagoryLevel = inCatagoryLevel;
				this.parentId = inParentId;
				this.state = inState;
				this.createDate = inCreateDate;
				this.doneDate = inDoneDate;
				this.remarks = inRemarks;
				this.sortBy = inSortBy;
			}

 


}

